package com.duoduo.admin.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.duoduo.admin.entity.SysUserPost;

public interface UserPostRepository  extends JpaRepository<SysUserPost, String> {
    /**
     * Count by role id long.
     *
     * @param roleId the role id
     * @return the long
     */
    long countByPostId(String postId);

	List<SysUserPost> findByUserId(Long userId);
}
